package com.dci.controller.project;

import com.dci.model.management.ProjectManageInfo;
import com.dci.result.PageResult;
import com.dci.service.project.ProjectRecordService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * All rights Reserved, Designed By 姑苏区政府大数据中心
 *
 * @version V1.0
 * @Title: null.java
 * @Package com.dci.controller.project
 * @Description: 项目档案管理
 * @author: 张星亮
 * @date: 2019/2/25
 * @Copyright: 2019 姑苏区政府大数据中心. All rights reserved.
 * 注意：本内容仅限于姑苏区政府大数据中心内部传阅，禁止外泄以及用于其他的商业目
 */
@Controller
@RequestMapping("/projectRecord")
public class ProjectRecordController {

    @Resource
    private ProjectRecordService projectRecordService;


    /**
     * 查询所有项目档案信息
     *
     * @param projectManageInfo
     * @return PageResult 封装的返回参数  保存成功msg:906 保存失败msg:911
     */
    @RequestMapping(value = "/selectAll")
    @ResponseBody
    public PageResult selectAll(@RequestBody ProjectManageInfo projectManageInfo) {
        return projectRecordService.selectAll(projectManageInfo);
    }

}
